﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Messaging;
using System.Net;
using System.Text;
using System.Transactions;
using Rhino.Queues;

namespace Sender
{
    class Program
    {
        static void Main(string[] args)
        {
            var remoteQueue = "FormatName:Direct=TCP:192.168.250.160\\private$\\lpiqueue";
            var localQueue = ".\\private$\\lpiqueue";
            try
            {
                var queue = new MessageQueue(localQueue);
                queue.Formatter = new BinaryMessageFormatter();

                for (int i = 0; i < 10000; i++)
                {
                    queue.Send(new byte[i]);
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

        }
    }
}
